package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    /*
    * 用户下单操作*/
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    PageResult pageQueryUser(int page, int pageSize, Integer status);

    /*
    * 查询订单详情*/
    OrderVO details(Long id);

    /*
    * 用户取消订单*/
    void userCancelById(Long id) throws Exception;

    /*
    * 再来一单*/
    void repetition(Long id);

    /*
    * 条件搜索订单*/
    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    /*
    * 各个状态的订单数量统计*/
    OrderStatisticsVO statistics();

    /*
    * 解但*/
    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    /*
    * 拒单*/
    void rejection(OrdersRejectionDTO ordersRejectionDTO) throws Exception;

    /*
    * 商家取消订单*/
    void cancel(OrdersCancelDTO ordersCancelDTO)throws Exception;

    /*
    * 派送订单*/
    void delivery(Long id);

    /*
    * 完成订单*/
    void complete(Long id);
}
